import 'package:json_annotation/json_annotation.dart';
import 'package:zhaoxiaowu_app/models/accounting_detail.dart';
// import 'package:zhaoxiaowu_app/models/accounting_detail.dart';

part 'accounting_info.g.dart';

@JsonSerializable()
class AccountingInfo {
  final String? date;
  final double? expenditure;
  final double? income;
  final List<AccountingDetail>? data;

  AccountingInfo({
    this.date,
    this.expenditure,
    this.income,
    this.data,
  });

  factory AccountingInfo.fromJson(Map<String, dynamic> json) => _$AccountingInfoFromJson(json);
  Map<String, dynamic> toJson() => _$AccountingInfoToJson(this);
}
